.class Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;
.super Ljava/lang/Object;
.source "NumberChooserDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->onShow(Landroid/content/DialogInterface;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;)V
    .locals 0

    .line 51
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 55
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$input:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    .line 57
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_0

    .line 58
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget-object v0, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$input:Landroid/widget/EditText;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$context:Landroid/content/Context;

    const v1, 0x7f110222

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V

    return-void

    .line 63
    :cond_0
    :try_start_0
    invoke-static {p1}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 69
    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget v1, v0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$min:F

    cmpg-float v1, p1, v1

    if-lez v1, :cond_2

    iget v1, v0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$max:F

    cmpl-float v1, p1, v1

    if-lez v1, :cond_1

    goto :goto_0

    .line 74
    :cond_1
    iget-object v0, v0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$listener:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$OnNumberSelectListener;

    invoke-interface {v0, p1}, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$OnNumberSelectListener;->onNumberSelected(F)V

    .line 75
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$dialog:Landroidx/appcompat/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    return-void

    .line 70
    :cond_2
    :goto_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget-object v0, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$input:Landroid/widget/EditText;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$context:Landroid/content/Context;

    const v1, 0x7f110223

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V

    return-void

    .line 65
    :catch_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3$1;->this$0:Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;

    iget-object v0, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$input:Landroid/widget/EditText;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/NumberChooserDialog$3;->val$context:Landroid/content/Context;

    const v1, 0x7f110224

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V

    return-void
.end method
